import { App } from "../../frame/App";
import { CmmnVDataProccesor } from "../../modules_common/view/CmmnVDataProccesor";
import { IViewCtrl, TViewConfig, ViewId, ViewLayer } from "../../modules_common/view/IView";
import { ViewComponent } from "../../modules_common/view/ViewComponent";
import { ViewCtrlBase } from "../../modules_common/view/ViewCtrlBase";
import { EnterView } from "./EnterView";


export class EnterCtrl extends ViewCtrlBase implements IViewCtrl {


    static viewConfig: TViewConfig = {
        id: ViewId.ENTER,
        name: "EnterView",
        bundle: "enter",
        prefab: "EnterView",
        layer: ViewLayer.FULL,
        atlasArr: []
    }

    static viewDep: any[] = [];

    get view(): EnterView {
        return this.node.getComponent(ViewComponent) as EnterView;
    }

    parseDep(): void {

    }

    refreshUI(): void {

    }

    dispose(): void {
        throw new Error("Method not implemented.");
    }


}

App.viewMgr.register(ViewId.ENTER, new EnterCtrl(App.resMgr, App.viewMgr, EnterCtrl.viewDep, EnterCtrl.viewConfig), new CmmnVDataProccesor());
